import Vue from 'vue'
import Router from 'vue-router'
import Todo from '@/components/todo/Todo.vue'
import File from '@/components/file/File.vue'
import About from '@/components/about/About.vue'

Vue.use(Router)

export default new Router({
    routes: [{
        path: 'todo',
        title: '任务清单',
        name: 'Todo',
        component: Todo
    }, {
        path: 'file',
        title: '任务归档',
        name: 'File',
        component: File
    }, {
        path: 'about',
        title: '关于作者',
        name: 'About',
        component: About
    }]
})
